<?php
/**
 * Fastapp.
 * 4/25/24
 * @Author deepsea
 * @Contact telegram:deepsea159
 */

namespace App\Fastapp\Api\Controller\Wechat;

use App\Fastapp\Api\Controller\ApiController;
use App\Fastapp\Api\Service\Wechat\MiniService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Mine\Annotation\Auth;
use Psr\Http\Message\ResponseInterface;

#[Controller('api/wechat/mini'), Auth('api')]
class MiniController extends ApiController
{
    #[Inject]
    public MiniService $service;

    #[GetMapping('qr')]
    public function qr(): ResponseInterface
    {
        return $this->success();
    }
}